package com.zmc.admin.infrastructure.dao;

import com.zmc.admin.infrastructure.entity.SysUserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户和角色关联表
 * 
 * @author zmc
 * @email 
 * @date 2024-10-09 17:27:49
 */
@Mapper
public interface SysUserRoleDao extends BaseMapper<SysUserRoleEntity> {

    void deleteUserRoleByUserId(Long userId);

    void deleteUserRoleByUserIds(Long[] userIds);

    void insertBatch(@Param("userRoleList") List<SysUserRoleEntity> userRoleList);

    boolean insertUserRole(SysUserRoleEntity userRole);

}
